package NProfessor;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;

public class ProfessorInfo extends JFrame {

	private JPanel contentPane;
	private JTextField tf1;
	private JTextField tf2;
	private JTextField tf3;
	private JTextField tf4;
	private JTextField tf5;
	private JTextField tf6;
	private JTextField tf7;
	private JTextField tf8;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ProfessorInfo frame = new ProfessorInfo();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ProfessorInfo() {
		setTitle("Privacy Information");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel top = new JPanel();
		contentPane.add(top, BorderLayout.NORTH);
		
		JLabel nlb1 = new JLabel("교수 개인정보 입력창");
		top.add(nlb1);
		
		JPanel middle = new JPanel();
		contentPane.add(middle, BorderLayout.CENTER);
		GridBagLayout gbl_middle = new GridBagLayout();
		gbl_middle.columnWidths = new int[]{169, -140, 0, 0, 0};
		gbl_middle.rowHeights = new int[]{1, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		gbl_middle.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_middle.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		middle.setLayout(gbl_middle);
		
		JLabel nlb2 = new JLabel("성명 :");
		GridBagConstraints gbc_nlb2 = new GridBagConstraints();
		gbc_nlb2.anchor = GridBagConstraints.EAST;
		gbc_nlb2.insets = new Insets(0, 0, 5, 5);
		gbc_nlb2.gridx = 0;
		gbc_nlb2.gridy = 1;
		middle.add(nlb2, gbc_nlb2);
		
		tf1 = new JTextField();
		GridBagConstraints gbc_tf1 = new GridBagConstraints();
		gbc_tf1.insets = new Insets(0, 0, 5, 0);
		gbc_tf1.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf1.gridx = 3;
		gbc_tf1.gridy = 1;
		middle.add(tf1, gbc_tf1);
		tf1.setColumns(10);
		
		JLabel nlb3 = new JLabel("교수 번호 :");
		GridBagConstraints gbc_nlb3 = new GridBagConstraints();
		gbc_nlb3.anchor = GridBagConstraints.EAST;
		gbc_nlb3.insets = new Insets(0, 0, 5, 5);
		gbc_nlb3.gridx = 0;
		gbc_nlb3.gridy = 2;
		middle.add(nlb3, gbc_nlb3);
		
		tf2 = new JTextField();
		GridBagConstraints gbc_tf2 = new GridBagConstraints();
		gbc_tf2.insets = new Insets(0, 0, 5, 0);
		gbc_tf2.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf2.gridx = 3;
		gbc_tf2.gridy = 2;
		middle.add(tf2, gbc_tf2);
		tf2.setColumns(10);
		
		JLabel nlb4 = new JLabel("연락처 :");
		GridBagConstraints gbc_nlb4 = new GridBagConstraints();
		gbc_nlb4.anchor = GridBagConstraints.EAST;
		gbc_nlb4.insets = new Insets(0, 0, 5, 5);
		gbc_nlb4.gridx = 0;
		gbc_nlb4.gridy = 3;
		middle.add(nlb4, gbc_nlb4);
		
		tf3 = new JTextField();
		GridBagConstraints gbc_tf3 = new GridBagConstraints();
		gbc_tf3.insets = new Insets(0, 0, 5, 0);
		gbc_tf3.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf3.gridx = 3;
		gbc_tf3.gridy = 3;
		middle.add(tf3, gbc_tf3);
		tf3.setColumns(10);
		
		JLabel nlb5 = new JLabel("비밀 번호 :");
		GridBagConstraints gbc_nlb5 = new GridBagConstraints();
		gbc_nlb5.anchor = GridBagConstraints.EAST;
		gbc_nlb5.insets = new Insets(0, 0, 5, 5);
		gbc_nlb5.gridx = 0;
		gbc_nlb5.gridy = 4;
		middle.add(nlb5, gbc_nlb5);
		
		tf4 = new JTextField();
		GridBagConstraints gbc_tf4 = new GridBagConstraints();
		gbc_tf4.insets = new Insets(0, 0, 5, 0);
		gbc_tf4.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf4.gridx = 3;
		gbc_tf4.gridy = 4;
		middle.add(tf4, gbc_tf4);
		tf4.setColumns(10);
		
		JLabel nlb6 = new JLabel("집 주소 :");
		GridBagConstraints gbc_nlb6 = new GridBagConstraints();
		gbc_nlb6.anchor = GridBagConstraints.EAST;
		gbc_nlb6.insets = new Insets(0, 0, 5, 5);
		gbc_nlb6.gridx = 0;
		gbc_nlb6.gridy = 5;
		middle.add(nlb6, gbc_nlb6);
		
		tf5 = new JTextField();
		GridBagConstraints gbc_tf5 = new GridBagConstraints();
		gbc_tf5.insets = new Insets(0, 0, 5, 0);
		gbc_tf5.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf5.gridx = 3;
		gbc_tf5.gridy = 5;
		middle.add(tf5, gbc_tf5);
		tf5.setColumns(10);
		
		JLabel nlb7 = new JLabel("사무실 주소 :");
		GridBagConstraints gbc_nlb7 = new GridBagConstraints();
		gbc_nlb7.anchor = GridBagConstraints.EAST;
		gbc_nlb7.insets = new Insets(0, 0, 5, 5);
		gbc_nlb7.gridx = 0;
		gbc_nlb7.gridy = 6;
		middle.add(nlb7, gbc_nlb7);
		
		tf6 = new JTextField();
		GridBagConstraints gbc_tf6 = new GridBagConstraints();
		gbc_tf6.insets = new Insets(0, 0, 5, 0);
		gbc_tf6.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf6.gridx = 3;
		gbc_tf6.gridy = 6;
		middle.add(tf6, gbc_tf6);
		tf6.setColumns(10);
		
		JLabel nlb8 = new JLabel("담당 학과 :");
		GridBagConstraints gbc_nlb8 = new GridBagConstraints();
		gbc_nlb8.anchor = GridBagConstraints.EAST;
		gbc_nlb8.insets = new Insets(0, 0, 5, 5);
		gbc_nlb8.gridx = 0;
		gbc_nlb8.gridy = 7;
		middle.add(nlb8, gbc_nlb8);
		
		tf7 = new JTextField();
		GridBagConstraints gbc_tf7 = new GridBagConstraints();
		gbc_tf7.insets = new Insets(0, 0, 5, 0);
		gbc_tf7.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf7.gridx = 3;
		gbc_tf7.gridy = 7;
		middle.add(tf7, gbc_tf7);
		tf7.setColumns(10);
		
		JLabel nlb9 = new JLabel("담당 과목 :");
		GridBagConstraints gbc_nlb9 = new GridBagConstraints();
		gbc_nlb9.anchor = GridBagConstraints.EAST;
		gbc_nlb9.insets = new Insets(0, 0, 0, 5);
		gbc_nlb9.gridx = 0;
		gbc_nlb9.gridy = 8;
		middle.add(nlb9, gbc_nlb9);
		
		tf8 = new JTextField();
		GridBagConstraints gbc_tf8 = new GridBagConstraints();
		gbc_tf8.fill = GridBagConstraints.HORIZONTAL;
		gbc_tf8.gridx = 3;
		gbc_tf8.gridy = 8;
		middle.add(tf8, gbc_tf8);
		tf8.setColumns(10);
		
		JPanel bottom = new JPanel();
		contentPane.add(bottom, BorderLayout.SOUTH);
		
		JButton btn1 = new JButton("등록");
		bottom.add(btn1);
	
	}

}
